package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.CategoryBrandRelationEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @className: CategoryBrandRelationDao
 * @description: 品牌分类关联
 * @date: 2020/11/1
 * @author: cakin
 */
@Mapper
public interface CategoryBrandRelationDao extends BaseMapper<CategoryBrandRelationEntity> {
    /**
     * 功能描述：以 catId 为条件，更新关联表的 name
     *
     * @param catId 分类Id
     * @return name 分类名称
     * @author cakin
     * @date 2020/11/1
     */
    void updateCategory(@Param("catId") Long catId, @Param("name") String name);

}
